package com.qili.entity.sys;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.stereotype.Component;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @author zhaoyongke
 * @date 2020/10/23
 * @description  省市
 */
@Table(name = "email_code")
@Data
@ToString
@EqualsAndHashCode
@Component
public class EmailCode implements Serializable {
    @Id
    @Column(name = "id")
    private String id;

    /**
     * 邮箱id
     */
    @Column(name = "email")
    private String email;

    /**
     * 验证码
     */
    @Column(name = "code")
    private String code;
    /**
     * 创建时间
     */
    @Column(name = "create_time")
    private String createTime;

    private static final long serialVersionUID = 1L;

}
